import React, { Component, ReactNode, ElementType } from 'react'
import styles from './index.module.scss'
import { Card } from 'antd'

interface SearchCardProps {
  title?: string
  children: any
}

class Index extends Component<SearchCardProps> {
  render() {
    const { title, children: Component } = this.props

    return (
      <Card className={styles.searchCard} size="small" title={title ? title : '高级搜索'} >
        {Component}
      </Card>
    )
  }
}

export default Index
